package com.itheima.mapper;

import com.itheima.pojo.Member;
import com.itheima.pojo.Order;

/**
 * @description: 会员持久层
 * @author: wangjingliang
 * @create: 2019-11-19 21:25
 **/
public interface MemberMapper {

    /**
     * 根据用户手机号进行查询
     * @param: String
    * @return: Member
     * @date: 2019/11/20
     */
    public Member findMemberByTelePhone(String telePhone);

    /**
     * 添加数据并返回id
     *@param: a
     * @return: null
     * @date: 2019/11/20
     */
    void addAndReturnId(Member member);

    /**
     * 根据id查询会员信息
     * @param:a
     * @return: null
     * @date: 2019/11/20
     */
    Member findById(Integer memberId);
}
